package com.lboyang.cloud.controller;

import com.lboyang.cloud.service.PaymentFeignService;
import com.lboyang.entity.Payment;
import com.lboyang.entity.common.ApiResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Author: Aiguodala
 * @CreateDate: 2021/4/27 21:13
 */
@RestController
@Slf4j
public class OrderFeignController
{
    @Autowired
    private PaymentFeignService paymentFeignService;

    @GetMapping(value = "/consumer/payment/get/{id}")
    public ApiResult<Payment> getPaymentById(@PathVariable("id") Long id)
    {
        return paymentFeignService.getPaymentById(id);
    }

}
